package config

import yl "yf_pkg/config/yaml"

type Config struct {
	TcpAddr    yl.Address "tcp_addr"
	Log         struct {
		Dir   string "dir"
		Level string "level"
	} "log"

	ServiceLst yl.Addresses "service_list"
	MemCached    yl.Addresses "memcached"
	Mode            string "mode" //develop/test/production
}

func (c *Config) Load(path string) error {
	return yl.Load(c, path)
}

